home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 9 / FM Towns Free Software Collection 9.iso / t_os / shell / tsbgex / src / fish / draw.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-16  |  716 b   |  32 lines

  1. #include "fish.h"
  2.  
  3. void draw16(win, work, x, y, width, x2, y2, w, h)
  4. struct window *win;
  5. short *work;
  6. int x, y, width, x2, y2, w, h;
  7. {
  8.     struct fish *p;
  9.     extern void _draw16();
  10.     
  11.     p = (struct fish *)win->owner;
  12.     _draw16(work + y * width + x, width - w,     /* dst */
  13.             p->raster[p->index] + y2 * win->w + x2,  /* src */
  14.             win->w - w, p->color,
  15.             w, h);
  16. }
  17.  
  18. void draw4(win, work, x, y, width, x2, y2, w, h)
  19. struct window *win;
  20. char *work;
  21. int x, y, width, x2, y2, w, h;
  22. {
  23.     struct fish *p;
  24.     extern void _draw4();
  25.     
  26.     p = (struct fish *)win->owner;
  27.     _draw4(work + y * width + x, width - w,     /* dst */
  28.             p->raster[p->index] + y2 * win->w + x2, /* src */
  29.             win->w - w, p->color,
  30.             w, h);
  31. }
  32.